package com.peanut.baby.mvp.launcher;

import android.app.Activity;

import com.peanut.baby.model.InitialAd;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/6/15.
 */

public interface LauncherContract {

    interface Presenter extends BasePresenter{

        void getAd();
        void checkPermission(Activity ctx);
    }

    interface View extends BaseView{
        void switchLogin();
        void switchMain();
        void onGetAdError(String msg);
        void onGetAdSuccess(InitialAd ad);
        void onPermissionGranted(List<String> grantPermissions);
        void onPermissionDenied(List<String> deniedPermissions);
    }
}
